#ifndef __TEXT_H__
#define __TEXT_H__

#include "../renderobj.h"

class TextObj : public RenderObj
{
public:
	TextObj(string strText, Point pos, float z, int fontsize, Color color);
	~TextObj();

	void SetTextPos(Point pos);
	static int GetFontWidth(int fontsize);

private:
	void OnRender(float differTime);

private:
	unsigned int* m_fontlist;
	size_t m_textlength;
	Point m_pos;
	float m_z;

	Color m_color;
};

#endif